<?php

/*
|--------------------------------------------------------------------------
| Routes File
|--------------------------------------------------------------------------
|
| Here is where you will register all of the routes in an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
});

//Route::get('basic1',function(){
//    return 'hello world';
//});
//
//Route::post('basic2',function(){
//    return 'hello kity';
//});
//
//Route::match(['get','post'],'multy1',function(){
//    return 'multy1';
//});
//
//Route::any('multy2',function(){
//    return 'multy2';
//});
//
//Route::get('user/{id}/{name?}',function($id,$name = 'sean'){
//    return 'user_id'.$id.'<br/>'.'user_name'.$name;
//})->where(['id'=>'[0-9]','name'=>'[A-Za-z]+']);
//
//// 路由别名
//Route::get('user/center',['as'=>'center',function(){
//    return route('center');
//}]);

//Route::get('Member/info','MemberController@info');

//Route::any('member/info',['uses'=>'MemberController@info']);

//Route::any('member/info',[
//    'uses'=>'MemberController@info',
//    'as'=>'memberinfo'
//]);

//Route::any('member/{id}',['uses'=>'MemberController@info'])->where(['id'=>'[0-9]+']);

Route::any('test1',['uses'=>'StudentController@test1']);
Route::any('query1',['uses'=>'StudentController@query1']);
Route::any('query2',['uses'=>'StudentController@query2']);
Route::any('query3',['uses'=>'StudentController@query3']);
Route::any('query4',['uses'=>'StudentController@query4']);
Route::any('query5',['uses'=>'StudentController@query5']);
Route::any('orm1',['uses'=>'StudentController@orm1']);
Route::any('orm2',['uses'=>'StudentController@orm2']);
Route::any('orm3',['uses'=>'StudentController@orm3']);
Route::any('orm4',['uses'=>'StudentController@orm4']);

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| This route group applies the "web" middleware group to every route
| it contains. The "web" middleware group is defined in your HTTP
| kernel and includes session state, CSRF protection, and more.
|
*/

Route::group(['middleware' => ['web']], function () {
    //
});
